package com.app.controller;


import com.app.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @author liuli
 */
@RestController
@RequestMapping("/dev")
public class DevController {
    @Resource
    UserService userService;

    @RequestMapping("/add")
    public String add(){
        userService.add();
        return "ok";
    }


    @RequestMapping("/select")
    public String select(){
        userService.select();
        return "ok";
    }

}
